package com.hziee.graduate.ticket.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@TableName("t_movie")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Movie extends Model<Movie> {

    //电影编号
    @TableId
    private Long movieId;
    //电影名字
    private String movieName;
    //电影横向封面
    private String movieCover;
    //电影类型
    private Integer movieTypeId;
    //电影类型
    private Double movieScore;
    //评分人数
    private Integer movieScoreNum;
    //电影简介
    private String movieDesc;
    //电影浏览量
    private Long movieView;
    // 电影时常
    private Integer movieDuring;

    private Integer moviePrice;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.movieId;
    }
}

